<?php
/**
 * 后台管理
 */
require DOCMENT_ROOT.'/Framework/controller.class.php';
class adminController extends controller{
    public function __construct(){
        parent::header();
        parent::smartyAction("Admin");
    }
    /**
     * 展示注册页面
     */
    public function login(){
        $this->smarty->display("login.html");
    }
      /*
     * 登录
     */  
    public function checklogin(){
            $name = $_GET["name"];
            $pwd =$_GET["pwd"];
            require DOCMENT_ROOT."/Application/Admin/model/adminModel.class.php";
            $adminModel=new adminModel();
            $result = $adminModel->login("$name","$pwd");
            echo $result;
    }
  
}
